//
//  WBDome.swift
//  WB
//
//  Created by macssss on 16/6/30.
//  Copyright © 2016年 macssss. All rights reserved.
//

import UIKit

class WBDome: WBBaseController {

    override func viewDidLoad() {
        super.viewDidLoad()

//        
        title = "第\(navigationController?.childViewControllers.count ?? 0)个"
    }
    
    
    @objc private func showNext() {
        
        let  vc  = WBDome()
        
       navigationController?.pushViewController(vc, animated: true)
        
    }

}

extension WBDome {
    //MARK: - 设置右侧按钮
    override func setupTabelView() {
        
        super.setupTabelView()
        
          navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(showNext))
        
    }
//    override func setupUI() {
//         
//        super.setupUI()
//        
//             navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(showNext))
//        
//    }
    
}
